<template>
  <div class="details">
      <div class="circumstance">
          <p v-html="title"></p> 
      </div>
  </div>
</template>
<script>
import axios from "axios";
export default {
  data(){
      return{
          title:null,
          gid: this.$route.query.id
      }
  },
  created(){
      axios.post("http://vueshop.glbuys.com/api/home/goods/info?gid="+this.gid+"&type=details&token=1ec949a15fb709370f").then(res => {
      this.title = res.data.data.bodys;
    })
  }
}
</script>
<style scoped>
.details {
  width: 100%;
  height: 100%;
  background: white;
  margin-top: 0.05rem;
}
.circumstance {
  width: 100%;
  background: #efefef;
  font-size: 0.3rem;
  line-height: 0.4rem;
  overflow: hidden;
}
.circumstance p {
  width: 95%;
  margin: 0 auto;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
</style>

